import request from '@/utils/request'

// 查询招生报名列表
export function listStudentApply(query) {
  return request({
    url: '/student/studentApply/list',
    method: 'get',
    params: query
  })
}

// 查询招生报名详细
export function getStudentApply(id) {
  return request({
    url: '/student/studentApply/' + id,
    method: 'get'
  })
}

// 新增招生报名
export function addStudentApply(data) {
  return request({
    url: '/student/studentApply',
    method: 'post',
    data: data
  })
}

// 修改招生报名
export function updateStudentApply(data) {
  return request({
    url: '/student/studentApply',
    method: 'put',
    data: data
  })
}

// 删除招生报名
export function delStudentApply(id) {
  return request({
    url: '/student/studentApply/' + id,
    method: 'delete'
  })
}

// 导出招生报名
export function exportStudentApply(query) {
  return request({
    url: '/student/studentApply/export',
    method: 'get',
    params: query
  })
}
// 下载导入模板
export function importTemplate() {
  return request({
    url: '/student/studentApply/importTemplate',
    method: 'get'
  })
}

// 审核招生报名
export function checkStudentApply(data) {
  return request({
    url: '/student/studentApply/check',
    method: 'post',
    data: data
  })
}
